package com.iooiee.builder_pattern.builder;

import com.iooiee.builder_pattern.Actor;

/**
 * 角色建造器：抽象建造者
 */
public abstract class AbstractActorBuilder {
    protected static Actor actor = new Actor();

    public abstract void buildType();
    public abstract void buildSex();
    public abstract void buildFace();
    public abstract void buildCostume();
    public abstract void buildHairstyle();

    // 工厂方法，返回一个完整的游戏对象
    public Actor construct(){
        this.buildType();
        this.buildSex();
        this.buildFace();
        this.buildCostume();
        this.buildHairstyle();
        return actor;
    }

}
